package com.zy.mc_module.ui.setting.setpay;

import android.content.Intent;

import com.zy.mc_module.R;
import com.zy.mc_module.base.BaseActivity;
import com.zy.mc_module.ui.login.VerCodeActivity;
import com.zy.mc_module.utils.StatusBarUtil;
import com.zy.mc_module.utils.UserUtils;
import com.zy.mc_module.view.CustomHeadLayout;

import butterknife.BindView;
import butterknife.OnClick;

/**
 * author : dq
 * date   : 19/4/15
 * desc   : 支付密码
 */
public class PayPwdActivity extends BaseActivity {
    @BindView(R.id.customhead)
    CustomHeadLayout customhead;

    @Override
    protected int getLayoutId() {
        return R.layout.activity_paypwd;
    }

    @Override
    protected void initView() {
        StatusBarUtil.setImmersiveStatusBar(this);
        customhead.setLeftClickListener(view -> finish());
    }

    /***
     * 修改支付密码
     */
    @OnClick(R.id.paypwd_change)
    public void change() {
        Intent intent = new Intent(context, SetPayActivity.class);
        intent.putExtra("title", "修改支付密码");
        startActivity(intent);
    }

    /***
     * 找回支付密码
     */
    @OnClick(R.id.paypwd_find)
    public void find() {
        Intent intent = new Intent(context, VerCodeActivity.class);
        intent.putExtra("tel", UserUtils.getTel());
        intent.putExtra("title", "短信验证");
        startActivity(intent);
    }
}
